<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var time=10;
			function aa(){
				time--;
				if(time<=0){
					location.href="https://www.baidu.com";
				}
				var bb=document.getElementById("tt");
				bb.innerHTML=time;
			}
			setInterval("aa()",1000);
		</script>
	</head>
	<body>
		<div>
			<span id="tt">10</span>秒后跳转百度
		</div>
	</body>
</html>
